package net.eascn.Editor.utils
{
	public class AlbumTemplateUtil
	{
		
		public static function createNewAlbumTemplate():XML
		{
			var xml:XML  = new XML();
			xml=<album id="-1" title="默认标题" thumb="data/alubm/1/thumb.png" desc="默认描述" width="400" height="400"/>;
			return xml;
		}
		
		public static function createNewPage():XML
		{
			var xml:XML = new XML();
			xml = 	<page id="-1" title="默认页标题">
						<background color="0x535353" thumb="" source="" editable="true"/>
						<trans source="" editable="true"/>
						<layout editable="true">
							 
						</layout>
					</page>
			return xml ;
		}
		
		public static function createTextFiled():XML
		{
			return <comp type="TextAnchor"  name="-1" text="你好" font=""  x="0" y="0" z="2" width="100" height="20" rotation="0" /> ;
		}
		
		public static function createPhotoField():XML
		{
			return <comp type="ImageAnchor" name="-1" source="" x="28" y="32" z="0" width="100" height="100" rotation="0" /> 
		}
	}
}